package cn.js.sip.rat.system.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: cn.js.sip.rat.system.config
 * @Description: TODO
 * @author: xuxiaoli
 * @Date: 2020-01-03   22:56
 */
@Configuration
@MapperScan("cn.js.sip.rat.**.mapper")
public class MyBatisPlusConfig {
    /**
     * mybatis-plus 分页
     *
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        return paginationInterceptor;
    }

}
